<include file="public@header" />
</head>
<body>
<div class="wrap">
	<include file="taxi/nav" />
	<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('taxi/driverSave')}">
		<div class="form-group">
			<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>姓名</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" id="input-name" name="name" value="" placeholder="姓名">
			</div>
		</div>
		<div class="form-group">
			<label for="input-code" class="col-sm-2 control-label"><span class="form-required">*</span>编号</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" id="input-code" name="code" value="" placeholder="司机编号">
			</div>
		</div>
		<div class="form-group">
			<label for="input-mobile" class="col-sm-2 control-label"><span class="form-required">*</span>手机号</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" id="input-mobile" name="mobile" value="" placeholder="司机手机号">
			</div>
		</div>
		<div class="form-group">
			<label for="input-car_no" class="col-sm-2 control-label"><span class="form-required">*</span>车牌号</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" id="input-car_no" name="car_no" value="" placeholder="车牌号">
			</div>
		</div>
		<div class="form-group">
			<label for="input-remark" class="col-sm-2 control-label">备注</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" id="input-remark" name="remark" value="">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<input type="hidden" name="id" id="input-id" value="" />
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
	// 表单自动填充
    <notempty name="info">
    var info = {$info|json_encode};
    for(var key in info) {
        $('#input-'+key).val(info[key]);
    }
    </notempty>
</script>
</body>
</html>